.class public Lcom/xingbook/group/view/ReplyRelativeLayout;
.super Landroid/widget/RelativeLayout;

# interfaces
.implements Landroid/view/View$OnClickListener;
.implements Landroid/widget/AdapterView$OnItemClickListener;


# instance fields
.field public a:Ljava/util/ArrayList;

.field private b:Landroid/content/Context;

.field private c:Landroid/app/Activity;

.field private d:Lcom/xingbook/group/view/v;

.field private e:Landroid/support/v4/view/ViewPager;

.field private f:Ljava/util/ArrayList;

.field private g:Landroid/widget/LinearLayout;

.field private h:Ljava/util/ArrayList;

.field private i:Ljava/util/List;

.field private j:Landroid/view/View;

.field private k:Landroid/widget/LinearLayout;

.field private l:Landroid/widget/EditText;

.field private m:Ljava/util/List;

.field private n:I

.field private o:Landroid/view/View;

.field private p:Landroid/view/View;

.field private q:Lcom/xingbook/group/view/u;

.field private r:Landroid/widget/ImageView;

.field private s:F

.field private t:Z

.field private u:Landroid/view/View$OnClickListener;


# direct methods
.method public constructor <init>(Landroid/app/Activity;)V
    .locals 1

    invoke-virtual {p1}, Landroid/app/Activity;->getApplicationContext()Landroid/content/Context;

    move-result-object v0

    invoke-direct {p0, v0}, Landroid/widget/RelativeLayout;-><init>(Landroid/content/Context;)V

    const/4 v0, 0x0

    iput-object v0, p0, Lcom/xingbook/group/view/ReplyRelativeLayout;->c:Landroid/app/Activity;

    const/4 v0, 0x0

    iput v0, p0, Lcom/xingbook/group/view/ReplyRelativeLayout;->n:I

    const/4 v0, 0x1

    iput-boolean v0, p0, Lcom/xingbook/group/view/ReplyRelativeLayout;->t:Z

    new-instance v0, Lcom/xingbook/group/view/p;

    invoke-direct {v0, p0}, Lcom/xingbook/group/view/p;-><init>(Lcom/xingbook/group/view/ReplyRelativeLayout;)V

    iput-object v0, p0, Lcom/xingbook/group/view/ReplyRelativeLayout;->u:Landroid/view/View$OnClickListener;

    invoke-virtual {p1}, Landroid/app/Activity;->getApplicationContext()Landroid/content/Context;

    move-result-object v0

    iput-object v0, p0, Lcom/xingbook/group/view/ReplyRelativeLayout;->b:Landroid/content/Context;

    iput-object p1, p0, Lcom/xingbook/group/view/ReplyRelativeLayout;->c:Landroid/app/Activity;

    return-void
.end method

.method public constructor <init>(Landroid/content/Context;Landroid/util/AttributeSet;)V
    .locals 1

    invoke-direct {p0, p1, p2}, Landroid/widget/RelativeLayout;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;)V

    const/4 v0, 0x0

    iput-object v0, p0, Lcom/xingbook/group/view/ReplyRelativeLayout;->c:Landroid/app/Activity;

    const/4 v0, 0x0

    iput v0, p0, Lcom/xingbook/group/view/ReplyRelativeLayout;->n:I

    const/4 v0, 0x1

    iput-boolean v0, p0, Lcom/xingbook/group/view/ReplyRelativeLayout;->t:Z

    new-instance v0, Lcom/xingbook/group/view/p;

    invoke-direct {v0, p0}, Lcom/xingbook/group/view/p;-><init>(Lcom/xingbook/group/view/ReplyRelativeLayout;)V

    iput-object v0, p0, Lcom/xingbook/group/view/ReplyRelativeLayout;->u:Landroid/view/View$OnClickListener;

    iput-object p1, p0, Lcom/xingbook/group/view/ReplyRelativeLayout;->b:Landroid/content/Context;

    return-void
.end method

.method public constructor <init>(Landroid/content/Context;Landroid/util/AttributeSet;I)V
    .locals 1

    invoke-direct {p0, p1, p2, p3}, Landroid/widget/RelativeLayout;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;I)V

    const/4 v0, 0x0

    iput-object v0, p0, Lcom/xingbook/group/view/ReplyRelativeLayout;->c:Landroid/app/Activity;

    const/4 v0, 0x0

    iput v0, p0, Lcom/xingbook/group/view/ReplyRelativeLayout;->n:I

    const/4 v0, 0x1

    iput-boolean v0, p0, Lcom/xingbook/group/view/ReplyRelativeLayout;->t:Z

    new-instance v0, Lcom/xingbook/group/view/p;

    invoke-direct {v0, p0}, Lcom/xingbook/group/view/p;-><init>(Lcom/xingbook/group/view/ReplyRelativeLayout;)V

    iput-object v0, p0, Lcom/xingbook/group/view/ReplyRelativeLayout;->u:Landroid/view/View$OnClickListener;

    iput-object p1, p0, Lcom/xingbook/group/view/ReplyRelativeLayout;->b:Landroid/content/Context;

    return-void
.end method

.method static synthetic a(Lcom/xingbook/group/view/ReplyRelativeLayout;)Landroid/widget/LinearLayout;
    .locals 1

    iget-object v0, p0, Lcom/xingbook/group/view/ReplyRelativeLayout;->k:Landroid/widget/LinearLayout;

    return-object v0
.end method

.method static synthetic a(Lcom/xingbook/group/view/ReplyRelativeLayout;I)V
    .locals 0

    iput p1, p0, Lcom/xingbook/group/view/ReplyRelativeLayout;->n:I

    return-void
.end method

.method static synthetic b(Lcom/xingbook/group/view/ReplyRelativeLayout;)Landroid/widget/ImageView;
    .locals 1

    iget-object v0, p0, Lcom/xingbook/group/view/ReplyRelativeLayout;->r:Landroid/widget/ImageView;

    return-object v0
.end method

.method static synthetic c(Lcom/xingbook/group/view/ReplyRelativeLayout;)Lcom/xingbook/group/view/u;
    .locals 1

    iget-object v0, p0, Lcom/xingbook/group/view/ReplyRelativeLayout;->q:Lcom/xingbook/group/view/u;

    return-object v0
.end method

.method static synthetic d(Lcom/xingbook/group/view/ReplyRelativeLayout;)Ljava/util/ArrayList;
    .locals 1

    iget-object v0, p0, Lcom/xingbook/group/view/ReplyRelativeLayout;->h:Ljava/util/ArrayList;

    return-object v0
.end method

.method static synthetic e(Lcom/xingbook/group/view/ReplyRelativeLayout;)Landroid/support/v4/view/ViewPager;
    .locals 1

    iget-object v0, p0, Lcom/xingbook/group/view/ReplyRelativeLayout;->e:Landroid/support/v4/view/ViewPager;

    return-object v0
.end method

.method private g()V
    .locals 2

    iget-object v0, p0, Lcom/xingbook/group/view/ReplyRelativeLayout;->c:Landroid/app/Activity;

    invoke-static {v0}, Lcom/xingbook/c/n;->b(Landroid/app/Activity;)F

    move-result v0

    iput v0, p0, Lcom/xingbook/group/view/ReplyRelativeLayout;->s:F

    new-instance v0, Ljava/util/ArrayList;

    const/4 v1, 0x3

    invoke-direct {v0, v1}, Ljava/util/ArrayList;-><init>(I)V

    iput-object v0, p0, Lcom/xingbook/group/view/ReplyRelativeLayout;->a:Ljava/util/ArrayList;

    invoke-direct {p0}, Lcom/xingbook/group/view/ReplyRelativeLayout;->i()V

    invoke-direct {p0}, Lcom/xingbook/group/view/ReplyRelativeLayout;->j()V

    invoke-direct {p0}, Lcom/xingbook/group/view/ReplyRelativeLayout;->k()V

    invoke-direct {p0}, Lcom/xingbook/group/view/ReplyRelativeLayout;->l()V

    invoke-direct {p0}, Lcom/xingbook/group/view/ReplyRelativeLayout;->h()V

    return-void
.end method

.method private h()V
    .locals 5

    const/high16 v4, 0x435c

    const/high16 v0, 0x4220

    iget v1, p0, Lcom/xingbook/group/view/ReplyRelativeLayout;->s:F

    mul-float/2addr v0, v1

    float-to-int v0, v0

    mul-int/lit8 v0, v0, 0x3

    div-int/lit8 v0, v0, 0x5

    new-instance v1, Landroid/widget/ImageView;

    iget-object v2, p0, Lcom/xingbook/group/view/ReplyRelativeLayout;->b:Landroid/content/Context;

    invoke-direct {v1, v2}, Landroid/widget/ImageView;-><init>(Landroid/content/Context;)V

    iput-object v1, p0, Lcom/xingbook/group/view/ReplyRelativeLayout;->r:Landroid/widget/ImageView;

    new-instance v1, Landroid/widget/LinearLayout$LayoutParams;

    iget v2, p0, Lcom/xingbook/group/view/ReplyRelativeLayout;->s:F

    mul-float/2addr v2, v4

    float-to-int v2, v2

    sub-int/2addr v2, v0

    iget v3, p0, Lcom/xingbook/group/view/ReplyRelativeLayout;->s:F

    mul-float/2addr v3, v4

    float-to-int v3, v3

    sub-int/2addr v3, v0

    invoke-direct {v1, v2, v3}, Landroid/widget/LinearLayout$LayoutParams;-><init>(II)V

    const/high16 v2, 0x41b0

    iget v3, p0, Lcom/xingbook/group/view/ReplyRelativeLayout;->s:F

    mul-float/2addr v2, v3

    float-to-int v2, v2

    const/4 v3, 0x0

    invoke-virtual {v1, v2, v0, v0, v3}, Landroid/widget/LinearLayout$LayoutParams;->setMargins(IIII)V

    iget-object v0, p0, Lcom/xingbook/group/view/ReplyRelativeLayout;->r:Landroid/widget/ImageView;

    invoke-virtual {v0, v1}, Landroid/widget/ImageView;->setLayoutParams(Landroid/view/ViewGroup$LayoutParams;)V

    iget-object v0, p0, Lcom/xingbook/group/view/ReplyRelativeLayout;->r:Landroid/widget/ImageView;

    sget-object v1, Landroid/widget/ImageView$ScaleType;->FIT_XY:Landroid/widget/ImageView$ScaleType;

    invoke-virtual {v0, v1}, Landroid/widget/ImageView;->setScaleType(Landroid/widget/ImageView$ScaleType;)V

    iget-object v0, p0, Lcom/xingbook/group/view/ReplyRelativeLayout;->r:Landroid/widget/ImageView;

    const v1, 0x7f02017f

    invoke-virtual {v0, v1}, Landroid/widget/ImageView;->setImageResource(I)V

    iget-object v0, p0, Lcom/xingbook/group/view/ReplyRelativeLayout;->r:Landroid/widget/ImageView;

    new-instance v1, Lcom/xingbook/group/view/q;

    invoke-direct {v1, p0}, Lcom/xingbook/group/view/q;-><init>(Lcom/xingbook/group/view/ReplyRelativeLayout;)V

    invoke-virtual {v0, v1}, Landroid/widget/ImageView;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    iget-object v0, p0, Lcom/xingbook/group/view/ReplyRelativeLayout;->k:Landroid/widget/LinearLayout;

    iget-object v1, p0, Lcom/xingbook/group/view/ReplyRelativeLayout;->r:Landroid/widget/ImageView;

    invoke-virtual {v0, v1}, Landroid/widget/LinearLayout;->addView(Landroid/view/View;)V

    return-void
.end method

.method private i()V
    .locals 8

    const/high16 v7, 0x4391

    const/high16 v6, 0x4296

    const/high16 v5, 0x420c

    const/4 v4, 0x0

    iget v1, p0, Lcom/xingbook/group/view/ReplyRelativeLayout;->s:F

    const/high16 v0, 0x4120

    mul-float/2addr v0, v1

    float-to-int v2, v0

    const v0, 0x7f0a017a

    invoke-virtual {p0, v0}, Lcom/xingbook/group/view/ReplyRelativeLayout;->findViewById(I)Landroid/view/View;

    move-result-object v0

    invoke-virtual {v0, v2, v2, v2, v2}, Landroid/view/View;->setPadding(IIII)V

    const v0, 0x7f0a0186

    invoke-virtual {p0, v0}, Lcom/xingbook/group/view/ReplyRelativeLayout;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/support/v4/view/ViewPager;

    iput-object v0, p0, Lcom/xingbook/group/view/ReplyRelativeLayout;->e:Landroid/support/v4/view/ViewPager;

    const v0, 0x7f0a019c

    invoke-virtual {p0, v0}, Lcom/xingbook/group/view/ReplyRelativeLayout;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/EditText;

    iput-object v0, p0, Lcom/xingbook/group/view/ReplyRelativeLayout;->l:Landroid/widget/EditText;

    iget-object v0, p0, Lcom/xingbook/group/view/ReplyRelativeLayout;->l:Landroid/widget/EditText;

    invoke-virtual {v0, v2, v2, v2, v2}, Landroid/widget/EditText;->setPadding(IIII)V

    iget-object v0, p0, Lcom/xingbook/group/view/ReplyRelativeLayout;->l:Landroid/widget/EditText;

    mul-float v3, v6, v1

    float-to-int v3, v3

    invoke-virtual {v0, v3}, Landroid/widget/EditText;->setMinHeight(I)V

    iget-object v0, p0, Lcom/xingbook/group/view/ReplyRelativeLayout;->l:Landroid/widget/EditText;

    mul-float v3, v5, v1

    invoke-virtual {v0, v4, v3}, Landroid/widget/EditText;->setTextSize(IF)V

    iget-object v0, p0, Lcom/xingbook/group/view/ReplyRelativeLayout;->l:Landroid/widget/EditText;

    invoke-virtual {v0}, Landroid/widget/EditText;->getLayoutParams()Landroid/view/ViewGroup$LayoutParams;

    move-result-object v0

    check-cast v0, Landroid/widget/RelativeLayout$LayoutParams;

    invoke-virtual {v0, v2, v4, v2, v4}, Landroid/widget/RelativeLayout$LayoutParams;->setMargins(IIII)V

    iget-object v0, p0, Lcom/xingbook/group/view/ReplyRelativeLayout;->l:Landroid/widget/EditText;

    invoke-virtual {v0, p0}, Landroid/widget/EditText;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    iget-object v0, p0, Lcom/xingbook/group/view/ReplyRelativeLayout;->l:Landroid/widget/EditText;

    new-instance v3, Lcom/xingbook/group/view/r;

    invoke-direct {v3, p0}, Lcom/xingbook/group/view/r;-><init>(Lcom/xingbook/group/view/ReplyRelativeLayout;)V

    invoke-virtual {v0, v3}, Landroid/widget/EditText;->addTextChangedListener(Landroid/text/TextWatcher;)V

    const v0, 0x7f0a019b

    invoke-virtual {p0, v0}, Lcom/xingbook/group/view/ReplyRelativeLayout;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    mul-float v3, v5, v1

    invoke-virtual {v0, v4, v3}, Landroid/widget/TextView;->setTextSize(IF)V

    const v3, -0x705e39

    invoke-virtual {v0, v3}, Landroid/widget/TextView;->setTextColor(I)V

    invoke-virtual {v0}, Landroid/widget/TextView;->getLayoutParams()Landroid/view/ViewGroup$LayoutParams;

    move-result-object v0

    const/high16 v3, 0x42c8

    mul-float/2addr v3, v1

    float-to-int v3, v3

    iput v3, v0, Landroid/view/ViewGroup$LayoutParams;->width:I

    mul-float v0, v6, v1

    float-to-int v3, v0

    const v0, 0x7f0a0199

    invoke-virtual {p0, v0}, Lcom/xingbook/group/view/ReplyRelativeLayout;->findViewById(I)Landroid/view/View;

    move-result-object v0

    iput-object v0, p0, Lcom/xingbook/group/view/ReplyRelativeLayout;->o:Landroid/view/View;

    iget-object v0, p0, Lcom/xingbook/group/view/ReplyRelativeLayout;->o:Landroid/view/View;

    invoke-virtual {v0}, Landroid/view/View;->getLayoutParams()Landroid/view/ViewGroup$LayoutParams;

    move-result-object v0

    check-cast v0, Landroid/widget/RelativeLayout$LayoutParams;

    iput v3, v0, Landroid/widget/RelativeLayout$LayoutParams;->width:I

    iput v3, v0, Landroid/widget/RelativeLayout$LayoutParams;->height:I

    iget-object v0, p0, Lcom/xingbook/group/view/ReplyRelativeLayout;->o:Landroid/view/View;

    invoke-virtual {v0, p0}, Landroid/view/View;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    const v0, 0x7f0a019a

    invoke-virtual {p0, v0}, Lcom/xingbook/group/view/ReplyRelativeLayout;->findViewById(I)Landroid/view/View;

    move-result-object v0

    iput-object v0, p0, Lcom/xingbook/group/view/ReplyRelativeLayout;->p:Landroid/view/View;

    iget-object v0, p0, Lcom/xingbook/group/view/ReplyRelativeLayout;->p:Landroid/view/View;

    invoke-virtual {v0}, Landroid/view/View;->getLayoutParams()Landroid/view/ViewGroup$LayoutParams;

    move-result-object v0

    check-cast v0, Landroid/widget/RelativeLayout$LayoutParams;

    iput v3, v0, Landroid/widget/RelativeLayout$LayoutParams;->width:I

    iput v3, v0, Landroid/widget/RelativeLayout$LayoutParams;->height:I

    invoke-virtual {v0, v2, v4, v4, v4}, Landroid/widget/RelativeLayout$LayoutParams;->setMargins(IIII)V

    iget-object v0, p0, Lcom/xingbook/group/view/ReplyRelativeLayout;->p:Landroid/view/View;

    invoke-virtual {v0, p0}, Landroid/view/View;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    const v0, 0x7f0a019e

    invoke-virtual {p0, v0}, Lcom/xingbook/group/view/ReplyRelativeLayout;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/LinearLayout;

    iput-object v0, p0, Lcom/xingbook/group/view/ReplyRelativeLayout;->g:Landroid/widget/LinearLayout;

    iget-object v0, p0, Lcom/xingbook/group/view/ReplyRelativeLayout;->g:Landroid/widget/LinearLayout;

    invoke-virtual {v0}, Landroid/widget/LinearLayout;->getLayoutParams()Landroid/view/ViewGroup$LayoutParams;

    move-result-object v0

    check-cast v0, Landroid/widget/RelativeLayout$LayoutParams;

    iput v2, v0, Landroid/widget/RelativeLayout$LayoutParams;->bottomMargin:I

    const v0, 0x7f0a019d

    invoke-virtual {p0, v0}, Lcom/xingbook/group/view/ReplyRelativeLayout;->findViewById(I)Landroid/view/View;

    move-result-object v0

    iput-object v0, p0, Lcom/xingbook/group/view/ReplyRelativeLayout;->j:Landroid/view/View;

    iget-object v0, p0, Lcom/xingbook/group/view/ReplyRelativeLayout;->j:Landroid/view/View;

    invoke-virtual {v0}, Landroid/view/View;->getLayoutParams()Landroid/view/ViewGroup$LayoutParams;

    move-result-object v0

    mul-float v3, v7, v1

    float-to-int v3, v3

    iput v3, v0, Landroid/view/ViewGroup$LayoutParams;->height:I

    iget-object v0, p0, Lcom/xingbook/group/view/ReplyRelativeLayout;->j:Landroid/view/View;

    div-int/lit8 v3, v2, 0x2

    invoke-virtual {v0, v2, v2, v2, v3}, Landroid/view/View;->setPadding(IIII)V

    const v0, 0x7f0a019f

    invoke-virtual {p0, v0}, Lcom/xingbook/group/view/ReplyRelativeLayout;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/LinearLayout;

    iput-object v0, p0, Lcom/xingbook/group/view/ReplyRelativeLayout;->k:Landroid/widget/LinearLayout;

    iget-object v0, p0, Lcom/xingbook/group/view/ReplyRelativeLayout;->k:Landroid/widget/LinearLayout;

    invoke-virtual {v0}, Landroid/widget/LinearLayout;->getLayoutParams()Landroid/view/ViewGroup$LayoutParams;

    move-result-object v0

    mul-float/2addr v1, v7

    float-to-int v1, v1

    iput v1, v0, Landroid/view/ViewGroup$LayoutParams;->height:I

    iget-object v0, p0, Lcom/xingbook/group/view/ReplyRelativeLayout;->k:Landroid/widget/LinearLayout;

    invoke-virtual {v0, v2, v2, v2, v2}, Landroid/widget/LinearLayout;->setPadding(IIII)V

    return-void
.end method

.method private j()V
    .locals 7

    const/4 v6, 0x1

    const/4 v2, 0x0

    new-instance v0, Ljava/util/ArrayList;

    invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V

    iput-object v0, p0, Lcom/xingbook/group/view/ReplyRelativeLayout;->f:Ljava/util/ArrayList;

    new-instance v0, Landroid/view/View;

    iget-object v1, p0, Lcom/xingbook/group/view/ReplyRelativeLayout;->b:Landroid/content/Context;

    invoke-direct {v0, v1}, Landroid/view/View;-><init>(Landroid/content/Context;)V

    invoke-virtual {v0, v2}, Landroid/view/View;->setBackgroundColor(I)V

    iget-object v1, p0, Lcom/xingbook/group/view/ReplyRelativeLayout;->f:Ljava/util/ArrayList;

    invoke-virtual {v1, v0}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z

    new-instance v0, Ljava/util/ArrayList;

    invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V

    iput-object v0, p0, Lcom/xingbook/group/view/ReplyRelativeLayout;->m:Ljava/util/List;

    move v1, v2

    :goto_0
    iget-object v0, p0, Lcom/xingbook/group/view/ReplyRelativeLayout;->i:Ljava/util/List;

    invoke-interface {v0}, Ljava/util/List;->size()I

    move-result v0

    if-lt v1, v0, :cond_0

    new-instance v0, Landroid/view/View;

    iget-object v1, p0, Lcom/xingbook/group/view/ReplyRelativeLayout;->b:Landroid/content/Context;

    invoke-direct {v0, v1}, Landroid/view/View;-><init>(Landroid/content/Context;)V

    invoke-virtual {v0, v2}, Landroid/view/View;->setBackgroundColor(I)V

    iget-object v1, p0, Lcom/xingbook/group/view/ReplyRelativeLayout;->f:Ljava/util/ArrayList;

    invoke-virtual {v1, v0}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z

    return-void

    :cond_0
    new-instance v4, Landroid/widget/GridView;

    iget-object v0, p0, Lcom/xingbook/group/view/ReplyRelativeLayout;->b:Landroid/content/Context;

    invoke-direct {v4, v0}, Landroid/widget/GridView;-><init>(Landroid/content/Context;)V

    new-instance v5, Lcom/xingbook/group/adapter/a;

    iget-object v0, p0, Lcom/xingbook/group/view/ReplyRelativeLayout;->c:Landroid/app/Activity;

    if-eqz v0, :cond_1

    iget-object v0, p0, Lcom/xingbook/group/view/ReplyRelativeLayout;->c:Landroid/app/Activity;

    move-object v3, v0

    :goto_1
    iget-object v0, p0, Lcom/xingbook/group/view/ReplyRelativeLayout;->i:Ljava/util/List;

    invoke-interface {v0, v1}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Ljava/util/List;

    invoke-direct {v5, v3, v0}, Lcom/xingbook/group/adapter/a;-><init>(Landroid/content/Context;Ljava/util/List;)V

    invoke-virtual {v4, v5}, Landroid/widget/GridView;->setAdapter(Landroid/widget/ListAdapter;)V

    iget-object v0, p0, Lcom/xingbook/group/view/ReplyRelativeLayout;->m:Ljava/util/List;

    invoke-interface {v0, v5}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    invoke-virtual {v4, p0}, Landroid/widget/GridView;->setOnItemClickListener(Landroid/widget/AdapterView$OnItemClickListener;)V

    const/4 v0, 0x7

    invoke-virtual {v4, v0}, Landroid/widget/GridView;->setNumColumns(I)V

    invoke-virtual {v4, v2}, Landroid/widget/GridView;->setBackgroundColor(I)V

    invoke-virtual {v4, v6}, Landroid/widget/GridView;->setHorizontalSpacing(I)V

    invoke-virtual {v4, v6}, Landroid/widget/GridView;->setVerticalSpacing(I)V

    const/4 v0, 0x2

    invoke-virtual {v4, v0}, Landroid/widget/GridView;->setStretchMode(I)V

    invoke-virtual {v4, v2}, Landroid/widget/GridView;->setCacheColorHint(I)V

    const/high16 v0, 0x4120

    iget v3, p0, Lcom/xingbook/group/view/ReplyRelativeLayout;->s:F

    mul-float/2addr v0, v3

    const/high16 v3, 0x4000

    div-float/2addr v0, v3

    float-to-int v0, v0

    invoke-virtual {v4, v0, v2, v0, v2}, Landroid/widget/GridView;->setPadding(IIII)V

    new-instance v0, Landroid/graphics/drawable/ColorDrawable;

    invoke-direct {v0, v2}, Landroid/graphics/drawable/ColorDrawable;-><init>(I)V

    invoke-virtual {v4, v0}, Landroid/widget/GridView;->setSelector(Landroid/graphics/drawable/Drawable;)V

    new-instance v0, Landroid/widget/RelativeLayout$LayoutParams;

    const/4 v3, -0x1

    const/4 v5, -0x2

    invoke-direct {v0, v3, v5}, Landroid/widget/RelativeLayout$LayoutParams;-><init>(II)V

    invoke-virtual {v4, v0}, Landroid/widget/GridView;->setLayoutParams(Landroid/view/ViewGroup$LayoutParams;)V

    const/16 v0, 0x11

    invoke-virtual {v4, v0}, Landroid/widget/GridView;->setGravity(I)V

    iget-object v0, p0, Lcom/xingbook/group/view/ReplyRelativeLayout;->f:Ljava/util/ArrayList;

    invoke-virtual {v0, v4}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z

    add-int/lit8 v0, v1, 0x1

    move v1, v0

    goto :goto_0

    :cond_1
    iget-object v0, p0, Lcom/xingbook/group/view/ReplyRelativeLayout;->b:Landroid/content/Context;

    move-object v3, v0

    goto :goto_1
.end method

.method private k()V
    .locals 7

    const/4 v6, -0x2

    new-instance v0, Ljava/util/ArrayList;

    invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V

    iput-object v0, p0, Lcom/xingbook/group/view/ReplyRelativeLayout;->h:Ljava/util/ArrayList;

    const/4 v0, 0x0

    :goto_0
    iget-object v1, p0, Lcom/xingbook/group/view/ReplyRelativeLayout;->f:Ljava/util/ArrayList;

    invoke-virtual {v1}, Ljava/util/ArrayList;->size()I

    move-result v1

    if-lt v0, v1, :cond_0

    return-void

    :cond_0
    new-instance v1, Landroid/widget/ImageView;

    iget-object v2, p0, Lcom/xingbook/group/view/ReplyRelativeLayout;->b:Landroid/content/Context;

    invoke-direct {v1, v2}, Landroid/widget/ImageView;-><init>(Landroid/content/Context;)V

    const v2, 0x7f0201d9

    invoke-virtual {v1, v2}, Landroid/widget/ImageView;->setBackgroundResource(I)V

    new-instance v2, Landroid/widget/LinearLayout$LayoutParams;

    new-instance v3, Landroid/view/ViewGroup$LayoutParams;

    invoke-direct {v3, v6, v6}, Landroid/view/ViewGroup$LayoutParams;-><init>(II)V

    invoke-direct {v2, v3}, Landroid/widget/LinearLayout$LayoutParams;-><init>(Landroid/view/ViewGroup$LayoutParams;)V

    const/high16 v3, 0x4120

    iget v4, p0, Lcom/xingbook/group/view/ReplyRelativeLayout;->s:F

    mul-float/2addr v3, v4

    float-to-int v3, v3

    const/high16 v4, 0x4140

    iget v5, p0, Lcom/xingbook/group/view/ReplyRelativeLayout;->s:F

    mul-float/2addr v4, v5

    float-to-int v4, v4

    iput v3, v2, Landroid/widget/LinearLayout$LayoutParams;->leftMargin:I

    iput v3, v2, Landroid/widget/LinearLayout$LayoutParams;->rightMargin:I

    iput v4, v2, Landroid/widget/LinearLayout$LayoutParams;->width:I

    iput v4, v2, Landroid/widget/LinearLayout$LayoutParams;->height:I

    iget-object v3, p0, Lcom/xingbook/group/view/ReplyRelativeLayout;->g:Landroid/widget/LinearLayout;

    invoke-virtual {v3, v1, v2}, Landroid/widget/LinearLayout;->addView(Landroid/view/View;Landroid/view/ViewGroup$LayoutParams;)V

    if-eqz v0, :cond_1

    iget-object v2, p0, Lcom/xingbook/group/view/ReplyRelativeLayout;->f:Ljava/util/ArrayList;

    invoke-virtual {v2}, Ljava/util/ArrayList;->size()I

    move-result v2

    add-int/lit8 v2, v2, -0x1

    if-ne v0, v2, :cond_2

    :cond_1
    const/16 v2, 0x8

    invoke-virtual {v1, v2}, Landroid/widget/ImageView;->setVisibility(I)V

    :cond_2
    const/4 v2, 0x1

    if-ne v0, v2, :cond_3

    const v2, 0x7f0201da

    invoke-virtual {v1, v2}, Landroid/widget/ImageView;->setBackgroundResource(I)V

    :cond_3
    iget-object v2, p0, Lcom/xingbook/group/view/ReplyRelativeLayout;->h:Ljava/util/ArrayList;

    invoke-virtual {v2, v1}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z

    add-int/lit8 v0, v0, 0x1

    goto :goto_0
.end method

.method private l()V
    .locals 3

    iget-object v0, p0, Lcom/xingbook/group/view/ReplyRelativeLayout;->e:Landroid/support/v4/view/ViewPager;

    new-instance v1, Lcom/xingbook/group/adapter/ViewPagerAdapter;

    iget-object v2, p0, Lcom/xingbook/group/view/ReplyRelativeLayout;->f:Ljava/util/ArrayList;

    invoke-direct {v1, v2}, Lcom/xingbook/group/adapter/ViewPagerAdapter;-><init>(Ljava/util/List;)V

    invoke-virtual {v0, v1}, Landroid/support/v4/view/ViewPager;->setAdapter(Landroid/support/v4/view/PagerAdapter;)V

    iget-object v0, p0, Lcom/xingbook/group/view/ReplyRelativeLayout;->e:Landroid/support/v4/view/ViewPager;

    const/4 v1, 0x1

    invoke-virtual {v0, v1}, Landroid/support/v4/view/ViewPager;->setCurrentItem(I)V

    const/4 v0, 0x0

    iput v0, p0, Lcom/xingbook/group/view/ReplyRelativeLayout;->n:I

    iget-object v0, p0, Lcom/xingbook/group/view/ReplyRelativeLayout;->e:Landroid/support/v4/view/ViewPager;

    new-instance v1, Lcom/xingbook/group/view/t;

    invoke-direct {v1, p0}, Lcom/xingbook/group/view/t;-><init>(Lcom/xingbook/group/view/ReplyRelativeLayout;)V

    invoke-virtual {v0, v1}, Landroid/support/v4/view/ViewPager;->setOnPageChangeListener(Landroid/support/v4/view/ViewPager$OnPageChangeListener;)V

    return-void
.end method

.method private m()V
    .locals 2

    iget-object v0, p0, Lcom/xingbook/group/view/ReplyRelativeLayout;->a:Ljava/util/ArrayList;

    invoke-virtual {v0}, Ljava/util/ArrayList;->size()I

    move-result v0

    if-lez v0, :cond_0

    iget-object v0, p0, Lcom/xingbook/group/view/ReplyRelativeLayout;->a:Ljava/util/ArrayList;

    invoke-virtual {v0}, Ljava/util/ArrayList;->clear()V

    iget-object v0, p0, Lcom/xingbook/group/view/ReplyRelativeLayout;->k:Landroid/widget/LinearLayout;

    invoke-virtual {v0}, Landroid/widget/LinearLayout;->removeAllViews()V

    iget-object v0, p0, Lcom/xingbook/group/view/ReplyRelativeLayout;->k:Landroid/widget/LinearLayout;

    iget-object v1, p0, Lcom/xingbook/group/view/ReplyRelativeLayout;->r:Landroid/widget/ImageView;

    invoke-virtual {v0, v1}, Landroid/widget/LinearLayout;->addView(Landroid/view/View;)V

    :cond_0
    return-void
.end method


# virtual methods
.method public a()V
    .locals 3

    iget-object v0, p0, Lcom/xingbook/group/view/ReplyRelativeLayout;->l:Landroid/widget/EditText;

    invoke-virtual {v0}, Landroid/widget/EditText;->requestFocus()Z

    invoke-virtual {p0}, Lcom/xingbook/group/view/ReplyRelativeLayout;->getFocusedChild()Landroid/view/View;

    move-result-object v1

    iget-object v0, p0, Lcom/xingbook/group/view/ReplyRelativeLayout;->b:Landroid/content/Context;

    const-string v2, "input_method"

    invoke-virtual {v0, v2}, Landroid/content/Context;->getSystemService(Ljava/lang/String;)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Landroid/view/inputmethod/InputMethodManager;

    invoke-virtual {v0}, Landroid/view/inputmethod/InputMethodManager;->isActive()Z

    move-result v2

    if-nez v2, :cond_0

    if-eqz v1, :cond_0

    const/4 v2, 0x0

    invoke-virtual {v0, v1, v2}, Landroid/view/inputmethod/InputMethodManager;->showSoftInput(Landroid/view/View;I)Z

    :cond_0
    return-void
.end method

.method public a(I)V
    .locals 3

    const/4 v0, 0x1

    move v1, v0

    :goto_0
    iget-object v0, p0, Lcom/xingbook/group/view/ReplyRelativeLayout;->h:Ljava/util/ArrayList;

    invoke-virtual {v0}, Ljava/util/ArrayList;->size()I

    move-result v0

    if-lt v1, v0, :cond_0

    return-void

    :cond_0
    if-ne p1, v1, :cond_1

    iget-object v0, p0, Lcom/xingbook/group/view/ReplyRelativeLayout;->h:Ljava/util/ArrayList;

    invoke-virtual {v0, v1}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Landroid/widget/ImageView;

    const v2, 0x7f0201da

    invoke-virtual {v0, v2}, Landroid/widget/ImageView;->setBackgroundResource(I)V

    :goto_1
    add-int/lit8 v0, v1, 0x1

    move v1, v0

    goto :goto_0

    :cond_1
    iget-object v0, p0, Lcom/xingbook/group/view/ReplyRelativeLayout;->h:Ljava/util/ArrayList;

    invoke-virtual {v0, v1}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Landroid/widget/ImageView;

    const v2, 0x7f0201d9

    invoke-virtual {v0, v2}, Landroid/widget/ImageView;->setBackgroundResource(I)V

    goto :goto_1
.end method

.method public a(Ljava/lang/String;)V
    .locals 10

    const/4 v9, 0x3

    const/4 v8, 0x0

    iget-object v0, p0, Lcom/xingbook/group/view/ReplyRelativeLayout;->a:Ljava/util/ArrayList;

    invoke-virtual {v0}, Ljava/util/ArrayList;->size()I

    move-result v0

    if-lt v0, v9, :cond_1

    :cond_0
    :goto_0
    return-void

    :cond_1
    iget-object v0, p0, Lcom/xingbook/group/view/ReplyRelativeLayout;->a:Ljava/util/ArrayList;

    invoke-virtual {v0, p1}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z

    iget v0, p0, Lcom/xingbook/group/view/ReplyRelativeLayout;->s:F

    const/high16 v1, 0x435c

    mul-float/2addr v1, v0

    float-to-int v1, v1

    const/high16 v2, 0x4220

    mul-float/2addr v2, v0

    float-to-int v2, v2

    const/high16 v3, 0x4120

    mul-float/2addr v0, v3

    float-to-int v0, v0

    mul-int/lit8 v3, v2, 0x3

    div-int/lit8 v3, v3, 0x5

    sub-int v4, v1, v3

    new-instance v5, Landroid/widget/RelativeLayout;

    iget-object v6, p0, Lcom/xingbook/group/view/ReplyRelativeLayout;->b:Landroid/content/Context;

    invoke-direct {v5, v6}, Landroid/widget/RelativeLayout;-><init>(Landroid/content/Context;)V

    new-instance v6, Landroid/widget/LinearLayout$LayoutParams;

    invoke-direct {v6, v1, v1}, Landroid/widget/LinearLayout$LayoutParams;-><init>(II)V

    const/high16 v1, 0x41b0

    iget v7, p0, Lcom/xingbook/group/view/ReplyRelativeLayout;->s:F

    mul-float/2addr v1, v7

    float-to-int v1, v1

    invoke-virtual {v6, v1, v8, v8, v8}, Landroid/widget/LinearLayout$LayoutParams;->setMargins(IIII)V

    invoke-virtual {v5, v6}, Landroid/widget/RelativeLayout;->setLayoutParams(Landroid/view/ViewGroup$LayoutParams;)V

    new-instance v1, Landroid/widget/ImageView;

    iget-object v6, p0, Lcom/xingbook/group/view/ReplyRelativeLayout;->b:Landroid/content/Context;

    invoke-direct {v1, v6}, Landroid/widget/ImageView;-><init>(Landroid/content/Context;)V

    new-instance v6, Landroid/widget/RelativeLayout$LayoutParams;

    invoke-direct {v6, v4, v4}, Landroid/widget/RelativeLayout$LayoutParams;-><init>(II)V

    invoke-virtual {v6, v8, v3, v3, v8}, Landroid/widget/RelativeLayout$LayoutParams;->setMargins(IIII)V

    invoke-virtual {v1, v6}, Landroid/widget/ImageView;->setLayoutParams(Landroid/view/ViewGroup$LayoutParams;)V

    sget-object v3, Landroid/widget/ImageView$ScaleType;->CENTER:Landroid/widget/ImageView$ScaleType;

    invoke-virtual {v1, v3}, Landroid/widget/ImageView;->setScaleType(Landroid/widget/ImageView$ScaleType;)V

    invoke-static {p1, v4}, Lcom/xingbook/group/b/d;->a(Ljava/lang/String;I)Landroid/graphics/Bitmap;

    move-result-object v3

    invoke-virtual {v1, v3}, Landroid/widget/ImageView;->setImageBitmap(Landroid/graphics/Bitmap;)V

    invoke-virtual {v5, v1}, Landroid/widget/RelativeLayout;->addView(Landroid/view/View;)V

    new-instance v1, Landroid/widget/ImageView;

    iget-object v3, p0, Lcom/xingbook/group/view/ReplyRelativeLayout;->b:Landroid/content/Context;

    invoke-direct {v1, v3}, Landroid/widget/ImageView;-><init>(Landroid/content/Context;)V

    sget-object v3, Landroid/widget/ImageView$ScaleType;->FIT_XY:Landroid/widget/ImageView$ScaleType;

    invoke-virtual {v1, v3}, Landroid/widget/ImageView;->setScaleType(Landroid/widget/ImageView$ScaleType;)V

    new-instance v3, Landroid/widget/RelativeLayout$LayoutParams;

    add-int v4, v2, v0

    add-int/2addr v2, v0

    invoke-direct {v3, v4, v2}, Landroid/widget/RelativeLayout$LayoutParams;-><init>(II)V

    const/16 v2, 0xb

    invoke-virtual {v3, v2}, Landroid/widget/RelativeLayout$LayoutParams;->addRule(I)V

    invoke-virtual {v1, v0, v8, v8, v0}, Landroid/widget/ImageView;->setPadding(IIII)V

    const v0, 0x7f0201e6

    invoke-virtual {v1, v0}, Landroid/widget/ImageView;->setImageResource(I)V

    invoke-virtual {v1, p1}, Landroid/widget/ImageView;->setTag(Ljava/lang/Object;)V

    invoke-virtual {v1, v3}, Landroid/widget/ImageView;->setLayoutParams(Landroid/view/ViewGroup$LayoutParams;)V

    iget-object v0, p0, Lcom/xingbook/group/view/ReplyRelativeLayout;->u:Landroid/view/View$OnClickListener;

    invoke-virtual {v1, v0}, Landroid/widget/ImageView;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    invoke-virtual {v5, v1}, Landroid/widget/RelativeLayout;->addView(Landroid/view/View;)V

    iget-object v0, p0, Lcom/xingbook/group/view/ReplyRelativeLayout;->k:Landroid/widget/LinearLayout;

    invoke-virtual {v0}, Landroid/widget/LinearLayout;->getChildCount()I

    move-result v0

    iget-object v1, p0, Lcom/xingbook/group/view/ReplyRelativeLayout;->k:Landroid/widget/LinearLayout;

    invoke-virtual {v1}, Landroid/widget/LinearLayout;->getChildCount()I

    move-result v1

    if-ge v1, v9, :cond_2

    iget-object v1, p0, Lcom/xingbook/group/view/ReplyRelativeLayout;->k:Landroid/widget/LinearLayout;

    add-int/lit8 v0, v0, -0x1

    invoke-virtual {v1, v5, v0}, Landroid/widget/LinearLayout;->addView(Landroid/view/View;I)V

    goto/16 :goto_0

    :cond_2
    iget-object v0, p0, Lcom/xingbook/group/view/ReplyRelativeLayout;->k:Landroid/widget/LinearLayout;

    invoke-virtual {v0}, Landroid/widget/LinearLayout;->getChildCount()I

    move-result v0

    if-ne v0, v9, :cond_0

    iget-object v0, p0, Lcom/xingbook/group/view/ReplyRelativeLayout;->k:Landroid/widget/LinearLayout;

    const/4 v1, 0x2

    invoke-virtual {v0, v1}, Landroid/widget/LinearLayout;->removeViewAt(I)V

    iget-object v0, p0, Lcom/xingbook/group/view/ReplyRelativeLayout;->k:Landroid/widget/LinearLayout;

    invoke-virtual {v0, v5}, Landroid/widget/LinearLayout;->addView(Landroid/view/View;)V

    goto/16 :goto_0
.end method

.method public b()V
    .locals 3

    iget-object v0, p0, Lcom/xingbook/group/view/ReplyRelativeLayout;->b:Landroid/content/Context;

    const-string v1, "input_method"

    invoke-virtual {v0, v1}, Landroid/content/Context;->getSystemService(Ljava/lang/String;)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Landroid/view/inputmethod/InputMethodManager;

    invoke-virtual {v0}, Landroid/view/inputmethod/InputMethodManager;->isActive()Z

    move-result v1

    if-eqz v1, :cond_0

    invoke-virtual {p0}, Lcom/xingbook/group/view/ReplyRelativeLayout;->getApplicationWindowToken()Landroid/os/IBinder;

    move-result-object v1

    const/4 v2, 0x2

    invoke-virtual {v0, v1, v2}, Landroid/view/inputmethod/InputMethodManager;->hideSoftInputFromWindow(Landroid/os/IBinder;I)Z

    :cond_0
    return-void
.end method

.method public b(Ljava/lang/String;)V
    .locals 2

    iget-object v0, p0, Lcom/xingbook/group/view/ReplyRelativeLayout;->l:Landroid/widget/EditText;

    invoke-virtual {v0}, Landroid/widget/EditText;->clearFocus()V

    iget-object v0, p0, Lcom/xingbook/group/view/ReplyRelativeLayout;->l:Landroid/widget/EditText;

    const-string v1, ""

    invoke-virtual {v0, v1}, Landroid/widget/EditText;->setText(Ljava/lang/CharSequence;)V

    iget-object v0, p0, Lcom/xingbook/group/view/ReplyRelativeLayout;->l:Landroid/widget/EditText;

    if-nez p1, :cond_0

    const-string p1, "\u56de\u590d\u697c\u4e3b"

    :cond_0
    invoke-virtual {v0, p1}, Landroid/widget/EditText;->setHint(Ljava/lang/CharSequence;)V

    invoke-direct {p0}, Lcom/xingbook/group/view/ReplyRelativeLayout;->m()V

    return-void
.end method

.method public c()Z
    .locals 2

    iget-object v0, p0, Lcom/xingbook/group/view/ReplyRelativeLayout;->j:Landroid/view/View;

    invoke-virtual {v0}, Landroid/view/View;->getVisibility()I

    move-result v0

    if-nez v0, :cond_0

    iget-object v0, p0, Lcom/xingbook/group/view/ReplyRelativeLayout;->j:Landroid/view/View;

    const/16 v1, 0x8

    invoke-virtual {v0, v1}, Landroid/view/View;->setVisibility(I)V

    const/4 v0, 0x1

    :goto_0
    return v0

    :cond_0
    const/4 v0, 0x0

    goto :goto_0
.end method

.method public d()Z
    .locals 2

    iget-object v0, p0, Lcom/xingbook/group/view/ReplyRelativeLayout;->k:Landroid/widget/LinearLayout;

    invoke-virtual {v0}, Landroid/widget/LinearLayout;->getVisibility()I

    move-result v0

    if-nez v0, :cond_0

    iget-object v0, p0, Lcom/xingbook/group/view/ReplyRelativeLayout;->k:Landroid/widget/LinearLayout;

    const/16 v1, 0x8

    invoke-virtual {v0, v1}, Landroid/widget/LinearLayout;->setVisibility(I)V

    const/4 v0, 0x1

    :goto_0
    return v0

    :cond_0
    const/4 v0, 0x0

    goto :goto_0
.end method

.method public e()V
    .locals 1

    iget-object v0, p0, Lcom/xingbook/group/view/ReplyRelativeLayout;->l:Landroid/widget/EditText;

    invoke-virtual {v0}, Landroid/widget/EditText;->requestFocus()Z

    return-void
.end method

.method public f()Z
    .locals 1

    iget-boolean v0, p0, Lcom/xingbook/group/view/ReplyRelativeLayout;->t:Z

    return v0
.end method

.method public getContent()Ljava/lang/String;
    .locals 1

    iget-object v0, p0, Lcom/xingbook/group/view/ReplyRelativeLayout;->l:Landroid/widget/EditText;

    invoke-virtual {v0}, Landroid/widget/EditText;->getText()Landroid/text/Editable;

    move-result-object v0

    invoke-interface {v0}, Landroid/text/Editable;->toString()Ljava/lang/String;

    move-result-object v0

    return-object v0
.end method

.method public getMinHeight()I
    .locals 2

    const/high16 v0, 0x42c2

    iget v1, p0, Lcom/xingbook/group/view/ReplyRelativeLayout;->s:F

    mul-float/2addr v0, v1

    float-to-int v0, v0

    return v0
.end method

.method public onClick(Landroid/view/View;)V
    .locals 4

    const/4 v3, 0x1

    const/16 v2, 0x8

    const/4 v1, 0x0

    iget-boolean v0, p0, Lcom/xingbook/group/view/ReplyRelativeLayout;->t:Z

    if-nez v0, :cond_1

    iget-object v0, p0, Lcom/xingbook/group/view/ReplyRelativeLayout;->b:Landroid/content/Context;

    const-string v1, "\u8be5\u8bdd\u9898\u7981\u6b62\u56de\u590d"

    invoke-static {v0, v1, v3}, Landroid/widget/Toast;->makeText(Landroid/content/Context;Ljava/lang/CharSequence;I)Landroid/widget/Toast;

    move-result-object v0

    invoke-virtual {v0}, Landroid/widget/Toast;->show()V

    :cond_0
    :goto_0
    return-void

    :cond_1
    invoke-virtual {p1}, Landroid/view/View;->getId()I

    move-result v0

    packed-switch v0, :pswitch_data_0

    :pswitch_0
    goto :goto_0

    :pswitch_1
    iget-object v0, p0, Lcom/xingbook/group/view/ReplyRelativeLayout;->j:Landroid/view/View;

    invoke-virtual {v0}, Landroid/view/View;->getVisibility()I

    move-result v0

    if-nez v0, :cond_2

    invoke-virtual {p1, v1}, Landroid/view/View;->setSelected(Z)V

    invoke-virtual {p0}, Lcom/xingbook/group/view/ReplyRelativeLayout;->a()V

    iget-object v0, p0, Lcom/xingbook/group/view/ReplyRelativeLayout;->j:Landroid/view/View;

    invoke-virtual {v0, v2}, Landroid/view/View;->setVisibility(I)V

    goto :goto_0

    :cond_2
    invoke-virtual {p1, v3}, Landroid/view/View;->setSelected(Z)V

    invoke-virtual {p0}, Lcom/xingbook/group/view/ReplyRelativeLayout;->b()V

    iget-object v0, p0, Lcom/xingbook/group/view/ReplyRelativeLayout;->k:Landroid/widget/LinearLayout;

    invoke-virtual {v0}, Landroid/widget/LinearLayout;->getVisibility()I

    move-result v0

    if-nez v0, :cond_3

    iget-object v0, p0, Lcom/xingbook/group/view/ReplyRelativeLayout;->k:Landroid/widget/LinearLayout;

    invoke-virtual {v0, v2}, Landroid/widget/LinearLayout;->setVisibility(I)V

    iget-object v0, p0, Lcom/xingbook/group/view/ReplyRelativeLayout;->p:Landroid/view/View;

    invoke-virtual {v0, v1}, Landroid/view/View;->setSelected(Z)V

    :cond_3
    iget-object v0, p0, Lcom/xingbook/group/view/ReplyRelativeLayout;->j:Landroid/view/View;

    invoke-virtual {v0, v1}, Landroid/view/View;->setVisibility(I)V

    goto :goto_0

    :pswitch_2
    iget-object v0, p0, Lcom/xingbook/group/view/ReplyRelativeLayout;->j:Landroid/view/View;

    invoke-virtual {v0}, Landroid/view/View;->getVisibility()I

    move-result v0

    if-nez v0, :cond_4

    iget-object v0, p0, Lcom/xingbook/group/view/ReplyRelativeLayout;->j:Landroid/view/View;

    invoke-virtual {v0, v2}, Landroid/view/View;->setVisibility(I)V

    iget-object v0, p0, Lcom/xingbook/group/view/ReplyRelativeLayout;->o:Landroid/view/View;

    invoke-virtual {v0, v1}, Landroid/view/View;->setSelected(Z)V

    :cond_4
    iget-object v0, p0, Lcom/xingbook/group/view/ReplyRelativeLayout;->k:Landroid/widget/LinearLayout;

    invoke-virtual {v0}, Landroid/widget/LinearLayout;->getVisibility()I

    move-result v0

    if-nez v0, :cond_0

    iget-object v0, p0, Lcom/xingbook/group/view/ReplyRelativeLayout;->k:Landroid/widget/LinearLayout;

    invoke-virtual {v0, v2}, Landroid/widget/LinearLayout;->setVisibility(I)V

    iget-object v0, p0, Lcom/xingbook/group/view/ReplyRelativeLayout;->p:Landroid/view/View;

    invoke-virtual {v0, v1}, Landroid/view/View;->setSelected(Z)V

    goto :goto_0

    :pswitch_3
    iget-object v0, p0, Lcom/xingbook/group/view/ReplyRelativeLayout;->k:Landroid/widget/LinearLayout;

    invoke-virtual {v0}, Landroid/widget/LinearLayout;->getVisibility()I

    move-result v0

    if-nez v0, :cond_5

    invoke-virtual {p1, v1}, Landroid/view/View;->setSelected(Z)V

    iget-object v0, p0, Lcom/xingbook/group/view/ReplyRelativeLayout;->k:Landroid/widget/LinearLayout;

    invoke-virtual {v0, v2}, Landroid/widget/LinearLayout;->setVisibility(I)V

    invoke-virtual {p0}, Lcom/xingbook/group/view/ReplyRelativeLayout;->a()V

    goto :goto_0

    :cond_5
    invoke-virtual {p1, v3}, Landroid/view/View;->setSelected(Z)V

    invoke-virtual {p0}, Lcom/xingbook/group/view/ReplyRelativeLayout;->b()V

    iget-object v0, p0, Lcom/xingbook/group/view/ReplyRelativeLayout;->j:Landroid/view/View;

    invoke-virtual {v0}, Landroid/view/View;->getVisibility()I

    move-result v0

    if-nez v0, :cond_6

    iget-object v0, p0, Lcom/xingbook/group/view/ReplyRelativeLayout;->j:Landroid/view/View;

    invoke-virtual {v0, v2}, Landroid/view/View;->setVisibility(I)V

    iget-object v0, p0, Lcom/xingbook/group/view/ReplyRelativeLayout;->o:Landroid/view/View;

    invoke-virtual {v0, v1}, Landroid/view/View;->setSelected(Z)V

    :cond_6
    iget-object v0, p0, Lcom/xingbook/group/view/ReplyRelativeLayout;->q:Lcom/xingbook/group/view/u;

    if-eqz v0, :cond_7

    iget-object v0, p0, Lcom/xingbook/group/view/ReplyRelativeLayout;->a:Ljava/util/ArrayList;

    invoke-virtual {v0}, Ljava/util/ArrayList;->size()I

    move-result v0

    if-nez v0, :cond_7

    iget-object v0, p0, Lcom/xingbook/group/view/ReplyRelativeLayout;->q:Lcom/xingbook/group/view/u;

    invoke-interface {v0}, Lcom/xingbook/group/view/u;->a()V

    :cond_7
    iget-object v0, p0, Lcom/xingbook/group/view/ReplyRelativeLayout;->k:Landroid/widget/LinearLayout;

    invoke-virtual {v0, v1}, Landroid/widget/LinearLayout;->setVisibility(I)V

    goto/16 :goto_0

    nop

    :pswitch_data_0
    .packed-switch 0x7f0a0199
        :pswitch_1
        :pswitch_3
        :pswitch_0
        :pswitch_2
    .end packed-switch
.end method

.method protected onFinishInflate()V
    .locals 1

    invoke-super {p0}, Landroid/widget/RelativeLayout;->onFinishInflate()V

    iget-object v0, p0, Lcom/xingbook/group/view/ReplyRelativeLayout;->b:Landroid/content/Context;

    invoke-static {v0}, Lcom/xingbook/group/b/b;->a(Landroid/content/Context;)Lcom/xingbook/group/b/b;

    move-result-object v0

    iget-object v0, v0, Lcom/xingbook/group/b/b;->b:Ljava/util/List;

    iput-object v0, p0, Lcom/xingbook/group/view/ReplyRelativeLayout;->i:Ljava/util/List;

    invoke-direct {p0}, Lcom/xingbook/group/view/ReplyRelativeLayout;->g()V

    return-void
.end method

.method public onItemClick(Landroid/widget/AdapterView;Landroid/view/View;IJ)V
    .locals 6

    iget-object v0, p0, Lcom/xingbook/group/view/ReplyRelativeLayout;->m:Ljava/util/List;

    iget v1, p0, Lcom/xingbook/group/view/ReplyRelativeLayout;->n:I

    invoke-interface {v0, v1}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/xingbook/group/adapter/a;

    invoke-virtual {v0, p3}, Lcom/xingbook/group/adapter/a;->getItem(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/xingbook/group/a/a;

    iget v1, v0, Lcom/xingbook/group/a/a;->a:I

    const v2, 0x7f02017b

    if-ne v1, v2, :cond_2

    iget-object v1, p0, Lcom/xingbook/group/view/ReplyRelativeLayout;->l:Landroid/widget/EditText;

    invoke-virtual {v1}, Landroid/widget/EditText;->getSelectionStart()I

    move-result v1

    iget-object v2, p0, Lcom/xingbook/group/view/ReplyRelativeLayout;->l:Landroid/widget/EditText;

    invoke-virtual {v2}, Landroid/widget/EditText;->getText()Landroid/text/Editable;

    move-result-object v2

    invoke-interface {v2}, Landroid/text/Editable;->toString()Ljava/lang/String;

    move-result-object v2

    if-lez v1, :cond_2

    add-int/lit8 v3, v1, -0x1

    invoke-virtual {v2, v3}, Ljava/lang/String;->substring(I)Ljava/lang/String;

    move-result-object v3

    const-string v4, "]"

    invoke-virtual {v4, v3}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v3

    if-eqz v3, :cond_1

    const-string v0, "["

    invoke-virtual {v2, v0}, Ljava/lang/String;->lastIndexOf(Ljava/lang/String;)I

    move-result v0

    iget-object v2, p0, Lcom/xingbook/group/view/ReplyRelativeLayout;->l:Landroid/widget/EditText;

    invoke-virtual {v2}, Landroid/widget/EditText;->getText()Landroid/text/Editable;

    move-result-object v2

    invoke-interface {v2, v0, v1}, Landroid/text/Editable;->delete(II)Landroid/text/Editable;

    :cond_0
    :goto_0
    return-void

    :cond_1
    iget-object v2, p0, Lcom/xingbook/group/view/ReplyRelativeLayout;->l:Landroid/widget/EditText;

    invoke-virtual {v2}, Landroid/widget/EditText;->getText()Landroid/text/Editable;

    move-result-object v2

    add-int/lit8 v3, v1, -0x1

    invoke-interface {v2, v3, v1}, Landroid/text/Editable;->delete(II)Landroid/text/Editable;

    :cond_2
    iget-object v1, v0, Lcom/xingbook/group/a/a;->b:Ljava/lang/String;

    invoke-static {v1}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v1

    if-nez v1, :cond_0

    iget-object v1, p0, Lcom/xingbook/group/view/ReplyRelativeLayout;->d:Lcom/xingbook/group/view/v;

    if-eqz v1, :cond_3

    iget-object v1, p0, Lcom/xingbook/group/view/ReplyRelativeLayout;->d:Lcom/xingbook/group/view/v;

    invoke-interface {v1, v0}, Lcom/xingbook/group/view/v;->a(Lcom/xingbook/group/a/a;)V

    :cond_3
    iget-object v1, p0, Lcom/xingbook/group/view/ReplyRelativeLayout;->b:Landroid/content/Context;

    invoke-static {v1}, Lcom/xingbook/group/b/b;->a(Landroid/content/Context;)Lcom/xingbook/group/b/b;

    move-result-object v1

    invoke-virtual {p0}, Lcom/xingbook/group/view/ReplyRelativeLayout;->getContext()Landroid/content/Context;

    move-result-object v2

    iget v3, v0, Lcom/xingbook/group/a/a;->a:I

    iget-object v0, v0, Lcom/xingbook/group/a/a;->b:Ljava/lang/String;

    iget-object v4, p0, Lcom/xingbook/group/view/ReplyRelativeLayout;->l:Landroid/widget/EditText;

    invoke-virtual {v4}, Landroid/widget/EditText;->getTextSize()F

    move-result v4

    const v5, 0x3fa66666

    mul-float/2addr v4, v5

    float-to-int v4, v4

    invoke-virtual {v1, v2, v3, v0, v4}, Lcom/xingbook/group/b/b;->a(Landroid/content/Context;ILjava/lang/String;I)Landroid/text/SpannableString;

    move-result-object v0

    iget-object v1, p0, Lcom/xingbook/group/view/ReplyRelativeLayout;->l:Landroid/widget/EditText;

    invoke-virtual {v1}, Landroid/widget/EditText;->getSelectionStart()I

    move-result v1

    iget-object v2, p0, Lcom/xingbook/group/view/ReplyRelativeLayout;->l:Landroid/widget/EditText;

    invoke-virtual {v2}, Landroid/widget/EditText;->getEditableText()Landroid/text/Editable;

    move-result-object v2

    if-ltz v1, :cond_4

    invoke-interface {v2}, Landroid/text/Editable;->length()I

    move-result v3

    if-lt v1, v3, :cond_5

    :cond_4
    invoke-interface {v2, v0}, Landroid/text/Editable;->append(Ljava/lang/CharSequence;)Landroid/text/Editable;

    goto :goto_0

    :cond_5
    invoke-interface {v2, v1, v0}, Landroid/text/Editable;->insert(ILjava/lang/CharSequence;)Landroid/text/Editable;

    goto :goto_0
.end method

.method public setCallback(Lcom/xingbook/group/view/u;)V
    .locals 0

    iput-object p1, p0, Lcom/xingbook/group/view/ReplyRelativeLayout;->q:Lcom/xingbook/group/view/u;

    return-void
.end method

.method public setOnCorpusSelectedListener(Lcom/xingbook/group/view/v;)V
    .locals 0

    iput-object p1, p0, Lcom/xingbook/group/view/ReplyRelativeLayout;->d:Lcom/xingbook/group/view/v;

    return-void
.end method

.method public setPostEnabled(Z)V
    .locals 1

    iput-boolean p1, p0, Lcom/xingbook/group/view/ReplyRelativeLayout;->t:Z

    iget-object v0, p0, Lcom/xingbook/group/view/ReplyRelativeLayout;->l:Landroid/widget/EditText;

    invoke-virtual {v0, p1}, Landroid/widget/EditText;->setEnabled(Z)V

    return-void
.end method
